<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr=[12,45,78,"年后",true]
        var obj={
            x:"你好",
            y:"good",
            z:45
        }
        // for (let i = 0; i < arr.length; i++) {
        //     console.log(i);
        //     console.log( arr[i]);
        // }
        // for (let i in arr) {
        //     console.log(i);
        //     console.log( arr[i]);
        // }
        // for (let i in arr) {
        //     console.log(i);
        //     console.log( arr[i]);
            
        // }
        for (let i of arr) {
            console.log(i);
        }


    </script>
</body>
</html>